<%--
  Created by IntelliJ IDEA.
  Author: hellcat
  Date: 2019/12/16
  Time: 20:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@include file="extra/body.jsp" %>
<%--start--%>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">当前用户</div>
                <div class="layui-card-body">
                    <a style="font-size: 15px;color: #1E9FFF"
                       href="${pageContext.request.contextPath }/basic/toBasic">
                        <shiro:principal property="name"/>
                    </a>
                </div>
            </div>
        </div>
        <div class="layui-col-md4 ">
            <div class="layui-card">
                <div class="layui-card-header" style="color: red">在售过期商品
                    <c:if test="${not empty checkMessage.overdue}">
                        <button type="button" class="layui-btn  layui-btn-sm layui-btn-normal layui-a-tips"
                                onclick="changeWaresStatus('${checkMessage.overdue}')">下架商品
                        </button>
                    </c:if>
                </div>
                <div class="layui-card-body">
                    <c:if test="${not empty checkMessage.overdue}">
                        <c:forEach items="${checkMessage.overdue}" var="overdue">
                            商品编号：${overdue.id}，商品名称：${overdue.name}<br>
                        </c:forEach>
                    </c:if>
                    <c:if test="${ empty checkMessage.overdue}">
                        暂无在售过期商品。
                    </c:if>
                </div>
            </div>
        </div>
        <div class="layui-col-md4 ">
            <div class="layui-card">
                <div class="layui-card-header" style="color: red">库存过多商品
                    <c:if test="${not empty checkMessage.inventoryTooMany}">
                        <button type="button" class="layui-btn  layui-btn-sm layui-btn-normal layui-a-tips"
                                onclick="window.location.href='../promotion/toPromotion'">前往促销
                        </button>
                    </c:if></div>
                <div class="layui-card-body">
                    <c:if test="${not empty checkMessage.inventoryTooMany}">
                        <c:forEach items="${checkMessage.inventoryTooMany}" var="inventoryTooMany">
                            商品编号：${inventoryTooMany.id}，商品名称：${inventoryTooMany.name}<br>
                        </c:forEach>
                    </c:if>
                    <c:if test="${ empty checkMessage.inventoryTooMany}">
                        暂无库存过多商品。
                    </c:if>
                </div>
            </div>
        </div>
        <div class="layui-col-md4 ">
            <div class="layui-card">
                <div class="layui-card-header" style="color: red">在售库存不足商品
                    <c:if test="${not empty checkMessage.insufficient}">
                        <button type="button" class="layui-btn  layui-btn-sm layui-btn-normal layui-a-tips"
                                onclick="window.location.href='../purchaseOrder/toInsertPurchaseOrder'">前往采购
                        </button>
                    </c:if></div>
                <div class="layui-card-body">
                    <c:if test="${not empty checkMessage.insufficient}">
                        <c:forEach items="${checkMessage.insufficient}" var="insufficient">
                            商品编号：${insufficient.id}，商品名称：${insufficient.name}<br>
                        </c:forEach>
                    </c:if>
                    <c:if test="${ empty checkMessage.insufficient}">
                        暂无在售库存不足商品。
                    </c:if>
                </div>
            </div>
        </div>
    </div>
</div>
<%--end--%>
</div>
</div>
<%@include file="extra/footer.jsp" %>

